<?php

require_once '/../Modele/Episode.php';

/**
 * @access public
 * @author Joana
 * @package Mapping_Dead.Contr�leur
 */
class Episode_controleur {

    /**
     * @AssociationType Mapping Dead.Vue.Administrateur_vue
     * @AssociationMultiplicity 1
     */
    public $utilise;

    /**
     * @access public
     * @param int numEpisode
     * @ParamType numEpisode int
     */
    public function modifierTimeline($numEpisode) {
        // Not yet implemented
    }

    /**
     * @access public
     * @param String version
     * @ParamType version String
     */
    public function changerVersion($version) {
        // Not yet implemented
    }

    /**
     * @access public
     * @param int numEpisode
     * @param String resume
     * @ParamType numEpisode int
     * @ParamType resume String
     */
    public function ajouterEpisode($saisonEpisode, $numeroEpisode, $titreEpisode, $titreEpisodeOriginal, $miniResume, $resume, $dateSortie) {
        $episode = new Episode;
        return $episode->ajouterEpisode($saisonEpisode, $numeroEpisode, $titreEpisode, $titreEpisodeOriginal, $miniResume, $resume, $dateSortie);
    }

    public function verifExiste($saisonEpisode, $numeroEpisode) {
        $episode = new Episode;
        return $episode->verifExiste($saisonEpisode, $numeroEpisode);
    }

    public static function afficherListeEpisode() {
        $episode = new Episode;
        return $episode->afficherListeEpisode();
    }

    public function getIdEpisodeByNumEpisode($saison, $episode) {
        return Episode::getElement(array('idSaison' => $saison, 'numeroEpisode' => $episode))[0]->idEpisode;
    }

    public static function getEpisode($idEpisode) {
        $episode = new Episode;
        return $episode->getEpisode($idEpisode);
    }

}

?>